'''配置文件'''
# 数据库 PyMYSQL，要区分好大小写，直接在pycharm安装
# pyyaml也是
import os
import time


class Configure():
    # 等到config文件夹  =》# 得到项目 文件夹
    root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    # 测试用例 数据
    data_path = os.path.join(root_path,r'data\test.xlsx')
    # 测试用例
    test_cases = os.path.join(root_path,"test_cases")
    # c测试报告
    report_path = os.path.join(root_path,"report")
    if not os.path.exists(report_path):
        os.mkdir(report_path)
    ts = str(int(time.time()))
    html_name = 'report_{}.html'.format(ts)
    file_path = os.path.join(report_path,html_name)

    # setting.yaml 路径
    config_path = os.path.join(root_path,'config')
    yaml_path = os.path.join(config_path,"setting.yaml")

# 直接实例化一个
config = Configure()

if __name__ == '__main__':

    print(config.report_path)